﻿<UserControl x:Class="QuickMail.View.Controls.ExtendedConnectSettings"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" FontSize="14"  FontWeight="DemiBold" 
             d:DesignHeight="550" d:DesignWidth="550">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <!--<TextBlock Grid.Row="0" Grid.Column="0" x:Name="FullNameTextBlock" Text="Your full name:" Margin="5" VerticalAlignment="Center"/>
        <TextBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" x:Name="FullNameTextBox" Margin="5" />-->

        <TextBlock Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" x:Name="GetServerTypeTextBlock" Text="Incoming mail server:" Margin="5, 10"/>
        <ComboBox Grid.Row="1" Grid.Column="2" x:Name="GetServerTypeComboBox" 
                  Width="130" Margin="5" HorizontalAlignment="Right" SelectedIndex="0">
            <ComboBoxItem Content="IMAP"/>
            <ComboBoxItem Content="POP3"/>
        </ComboBox>

        <TextBlock Grid.Row="2" Grid.Column="0" x:Name="GetServerTextBlock" Text="Server:" Margin="5" VerticalAlignment="Center"/>
        <TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" x:Name="GetServerTextBox" Margin="5" />

        <TextBlock Grid.Row="3" Grid.Column="0" x:Name="GetPortTextBlock" Text="Port number:" Margin="5" VerticalAlignment="Center"/>
        <TextBox Grid.Row="3" Grid.Column="1" x:Name="GetPortTextBox" Width="70" Margin="5" HorizontalAlignment="Left"/>
        <CheckBox  Grid.Row="3" Grid.Column="2" x:Name="GetSafetyConnectionCheckBox" Content="Use SSL" Margin="5"/>

        <TextBlock Grid.Row="4" Grid.Column="0" x:Name="GetEmailTextBlock" Text="E-mail:" Margin="5" VerticalAlignment="Center"/>
        <TextBox Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" x:Name="GetEmailTextBox" Margin="5" />

        <TextBlock Grid.Row="5" Grid.Column="0" x:Name="GetPasswordTextBlock" Text="Password:" Margin="5" VerticalAlignment="Center"/>
        <PasswordBox Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="2" x:Name="GetPasswordBox" Margin="5" />

        <TextBlock Grid.Row="6" Grid.Column="0" x:Name="GetStatusTextBlock" Text="Status:" Margin="5" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="2" Margin="5" x:Name="GetConnectionStatusTextBlock" VerticalAlignment="Center"/>

        <TextBlock Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2" x:Name="SendServerTypeTextBlock" Text="Outgoing mail server: SMTP" Margin="5, 10"/>

        <TextBlock Grid.Row="8" Grid.Column="0" x:Name="SendServerTextBlock" Text="Server: " Margin="5" VerticalAlignment="Center"/>
        <TextBox Grid.Row="8" Grid.Column="1" x:Name="SendServerTextBox" Grid.ColumnSpan="2" Margin="5" />

        <TextBlock Grid.Row="9" Grid.Column="0" x:Name="SendPortTextBlock" Text="Port number:" Margin="5" VerticalAlignment="Center"/>
        <TextBox Grid.Row="9" Grid.Column="1" x:Name="SendPortTextBox" Width="70" Margin="5" />
        <!--<CheckBox  Grid.Row="9" Grid.Column="2" x:Name="SendSafetyConnectionCheckBox" Content="Use SSL"/>-->
        <TextBlock Grid.Row="9" Grid.Column="2" x:Name="SendCryptTextBlock" Text="Encryption: " Margin="5" VerticalAlignment="Center"/>
        <ComboBox Grid.Row="9" Grid.Column="2" x:Name="SendCryptTypeComboBox" Width="130" Margin="5" HorizontalAlignment="Right" SelectedIndex="0">
            <ComboBoxItem Content="None"/>
            <ComboBoxItem Content="SSL"/>
            <ComboBoxItem Content="TLS"/>
        </ComboBox>

        <TextBlock Grid.Row="10" Grid.Column="0" x:Name="SendAuthenticationTypeTextBlock" 
                   Text="Authentication: " Margin="5" VerticalAlignment="Center"/>
        <ComboBox Grid.Row="10" Grid.Column="1" Grid.ColumnSpan="2" SelectedIndex="0"
                  x:Name="SendAutinfecationTypeComboBox" Margin="5">
            <ComboBoxItem Content="Auto"/>
            <ComboBoxItem Content="AUTH CRAM-MD5"/>
            <ComboBoxItem Content="AUTH LOGIN"/>
            <ComboBoxItem Content="AUTH PLAIN"/>
            <ComboBoxItem Content="AUTH POP3 before SMTP"/>
            <ComboBoxItem Content="None"/>
        </ComboBox>

        <TextBlock Grid.Row="11" Grid.Column="0" x:Name="SendEmailTextBlock" Text="E-mail:" Margin="5" VerticalAlignment="Center"/>
        <TextBox Grid.Row="11" Grid.Column="1" Grid.ColumnSpan="2" x:Name="SendEmailTextBox" Margin="5" />

        <TextBlock Grid.Row="12" Grid.Column="0" x:Name="SendPasswordTextBlock" Text="Password: " Margin="5" VerticalAlignment="Center"/>
        <PasswordBox Grid.Row="12" Grid.Column="1" Grid.ColumnSpan="2" x:Name="SendPasswordBox" Margin="5" />

        <TextBlock Grid.Row="13" Grid.Column="0" x:Name="SendStatusTextBlock" Text="Status:" Margin="5" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="13" Grid.Column="1" Grid.ColumnSpan="2" Margin="5" 
                   x:Name="SendConnectionStatusTextBlock" VerticalAlignment="Center"/>

        <Button Grid.Row="14" Grid.Column="0" x:Name="TestConnectionButton" Content="Test connection" Click="TestConnect_OnClick"
                Width="170" Height="35" VerticalAlignment="Bottom" />
    </Grid>
</UserControl>
